package ro.myApp.security.service;

import java.security.NoSuchAlgorithmException;

import org.jboss.security.Util;

public class Encryption {
	public static String encrypt(String s) throws NoSuchAlgorithmException{
		   return Util.createPasswordHash("SHA", Util.BASE16_ENCODING, null, null, s);   
	}	
}
